// ============================== 导入依赖 ============================== //

import VueRouter from 'vue-router'

import CommonPrint from '@/views/CommonPrint'
import NotFound from '@/views/404'

// ============================== 导出路由 ============================== //

const router = new VueRouter({
  mode: 'history',
  base: process.env.VUE_APP_RUN,
  routes: [
    {
      path: '/common/:type/:layout',
      props: true,
      component: CommonPrint,
    },
    {
      path: '*',
      component: NotFound,
    },
  ],
})

export default router
